<%-- 
    Document   : product
    Created on : 2014-4-4, 10:23:27
    Author     : lcfgly
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <title>${userinfo.users.uname} 渔具价格，渔具报价</title>
        <%@include file="/WEB-INF/jspf/view/css.jspf" %>
    </head>
    <body style="padding-top:50px;min-width:900px;">
        <jsp:include page="/header/${userinfo.users.uid}.html" />
        <div class="bodyinfo">
            <div class="container contentbody"><!--中部-->
                    <!--中部左侧-->
                    <div class="col-md-3 nopadding  marginbottom10" >
                        <!--左侧导航-->
                        <div class="list-group">
                            <c:forEach var="item" items="${typelist}">
                                <a href="<c:url value="/shoplist/${userinfo.users.uid}/${item.id}/1.html" />" class="list-group-item">${item.name}</a>
                            </c:forEach>
                        </div>
                        <!--end左侧导航-->
                    </div>
                    <!--中部左侧-->
                    <!--中部右侧-->
                    <div class="col-md-9 marginbottom10" style="padding-right: 0px" >
                        <!--最新报价-->
                        <div class="titleline nopadding">
                            <div class="name  col-md-5">最新产品报价</div>
                        </div>
                        <div class="bgwhite">
                            <c:if test="${empty list.data}">
                                <div class="alert alert-warning nomargin">
                                    暂无报价
                                </div>
                            </c:if>
                            <ul class="productlist nomargin">
                                <c:forEach items="${list.data}" var="item">
                                    <li>
                                        <img src="<c:url value="${item.product.litpic}" />" class="col-md-3 nopadding"  />  
                                        <div class="pull-left col-md-5">
                                            <span class="title">${item.product.title}</span>
                                            <div style="height:40px;line-height: 40px;">报价时间：<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.price.updatetime}" /></div>
                                            <div style="color:#999"><a href="<c:url value="/product/${item.product.addtable}/${item.product.id}.html" />" target="_blank">产品详情>></a></div>
                                        </div>
                                        <div class="pull-right col-md-2" style="padding-top:30px;text-align: right;">
                                            <c:if test="${!empty userinfo.userinfer.qq}" >
                                                <a class="btn btn-warning" href="http://wpa.qq.com/msgrd?v=3&amp;uin=${userinfo.userinfer.qq}&amp;site=www.mp189.com&amp;menu=yes" target="_blank">QQ聊天</a>
                                            </c:if>
                                            <c:if test="${empty userinfo.userinfer.qq}" >
                                                <a class="btn btn-warning" href="<c:url value="/shopmessage/${userinfo.users.uid}/1.html#mesg" />" >在线留言</a>
                                            </c:if>
                                           </div>
                                        <div class="col-md-3 pull-right price nopadding">￥${item.price.price}</div>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <!--end最新报价-->
                        <c:if test="${list.page.lastpage > 1}">
                            <div class="col-md-12 bgwhite text-center">
                                <ul class="pagination">
                                    <c:if test="${list.page.nowpage > 1}">
                                        <li><a href="<c:url value="/shoplist/${userinfo.users.uid}/${nowitem}${list.page.firstpage}.html" />">首页</a></li>
                                        </c:if>
                                        <c:if test="${list.page.uppage > 1}">
                                        <li><a href="<c:url value="/shoplist/${userinfo.users.uid}/${nowitem}${list.page.uppage}.html" />">&laquo;</a></li>
                                        </c:if>
                                        <c:forEach var="item" items="${list.page.page}">
                                        <li><a href="<c:url value="/shoplist/${userinfo.users.uid}/${nowitem}${item}.html" />">${item}</a></li>
                                        </c:forEach>
                                        <c:if test="${list.page.downpage > info.page.lastpage}">
                                        <li><a href="<c:url value="/shoplist/${userinfo.users.uid}/${nowitem}${list.page.downpage}.html" />">&raquo;</a></li>
                                        </c:if>
                                        <c:if test="${list.page.lastpage > 1}">
                                        <li><a href="<c:url value="/shoplist/${userinfo.users.uid}/${nowitem}${list.page.lastpage}.html" />">末页</a></li>
                                        </c:if>
                                </ul>
                            </div>
                        </c:if>
                    </div>
                    <!--end中部右侧-->
                <!--end中部-->
            </div>
            <%@include file="/WEB-INF/jspf/view/foot.jspf" %>
        </div>
        <%@include file="/WEB-INF/jspf/view/js.jspf" %>
    </body>
</html>